<div id="wrap" class="clearfix">

    <div id="aside">
        
    <?if($method!='browse_fleet'):?>
    
       <div id="changeDetasilsBox">
            <?$this->load->view('rentacar/parts/your_details')?>
        </div>
        <?endif;?>
        <div id="serchModule"  <?if($method=='browse_fleet')echo 'style="display:block"';?>>
            <?$this->load->view('rentacar/parts/search_box')?>
        </div>
        <? $this->load->view('destinations/parts/banner') ?>
        <?$this->load->view('rentacar/parts/map_box')?>

    </div><!-- / Aside -->

    <div id="main">

        <? $total_res = count($car_list); ?>
        <div class="title title-search no-line">
            <p class="float-left"><?= lang('rentacar.found') ?> <?=$total_res?> 
                <?
                    if($total_res>1){
                        echo lang('rentacar.results');
                        
                        }else {
                            echo lang('rentacar.result');
                        }
                            ?></p>
            <h1><?= $method != 'browse_fleet' ? lang('search.search.results') : lang('search.search.results.clean') ?></h1>
        </div>

        <div class="search-list clearfix">

            <? $i=1; foreach ($car_list as $car): ?>       

                <div class="car-box">
                    <? 
                        $href = base_url('rentacar/'.urlify::filter($car->name).'-'.$car->id);
                    ?>

                    <?$filename = get_thumbnail(132,87,$car->f_name)?>
                    <a href="<?=$href?>"> <img src="<?=$hosting?>pro-gallery/<?=$car->g_path.'/'.$filename?>" alt=""> </a>
                    
                    <div class="details">
                        <div class="star-rating-box">

                            <? $this->load->view('rentacar/parts/rating',array('no'=>$i,'score'=>round($car->score/2))); ?>

                        </div>
                        <? 
                            $pices = explode(" ",$car->name);
                        ?>
                        <h2><a href="<?=$href?>"><span><?=$pices[0]?></span><?
                                        for($j=1;$j<=count($pices)-1;$j++){
                                            echo ' '.$pices[$j];
                                        }
                                ?></a></h2>

                        <p><?=clean_html($car->description)?></p>

                        <ul class="spec">
                            <li class="people"><?=$car->seat_count?></li>
                            <li class="doors"><?=$car->num_of_doors?></li>
                            <li class="luggage"><?=$car->luggage_capacity?></li>
                            <li class="automatic"><?if($car->auto_transmission){ echo '√'; }else{ echo 'x'; } ?></li>
                            <li class="aircondition"><?if($car->ac){ echo '√'; }else{ echo 'x'; } ?></li>
                            <li class="fuell"><?if($car->diesel){ echo 'D'; }else{ echo 'B'; } ?></li>
                            <li class="polution"><?=$car->co2?> g/kga</li>
                        </ul>
                        <span class="consumption"><?=number_format($car->fuel_consumption,1,',', ' ')?> l/100km</span>
                         <?if($method=='browse_fleet')$no_days = 1;?>
                        <span class='big'><?=calculateDayPrice($no_days,$car)?>€ <span>/ <?= lang('rentacar.day') ?></span></span>
                        
                        <?if($method=='browse_fleet'){?>
                        <a href="<?=$href?>" class="button"><?= lang('rentacar.details') ?> &raquo;</a>
                        <?}else{?>
                        <a href="<?=base_url('rentacar/checkout/'.urlify::filter($car->name).'-'.$car->id)?>" class="button"><?= lang('rentacar.book.now') ?> &raquo;</a>
                        <?}?>
                    </div>
                </div> <!--/ Item -->

                <?$i++; endforeach; ?>

        </div><!-- / Three Columns -->
        
        <div class="two-columns clearfix">
            <?$this->load->view('parts/two_column')?>
        </div>

    </div><!-- / Mian -->

</div><!-- / Wrap -->